using System;
using System.Collections.Generic;
using System.Text;

namespace Decav.Transactions
{
    /// <summary>
    /// Interfaces an object that binds to events on a <see cref="BindingTarget"/>
    /// and updates another <see cref="BindingTarget"/>.
    /// </summary>
    public interface IDataBindEventAdapter : IDisposable
    {
        /// <summary>
        /// Binds to the source's events, and updates the target when the source's
        /// property changes.
        /// </summary>
        /// <param name="source">The value to watch for changes on.</param>
        /// <param name="target">The member to update when the value changes on
        /// the source.</param>
        void Bind(BindingTarget source, BindingTarget target);
    }
}
